home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXGGGGeeeettttDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXGGGGeeeettttDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((3333XXXX11111111))))
-
-
-
- NNNNAAAAMMMMEEEE
- XGetDeviceKeyMapping, XChangeDeviceKeyMapping - query or
- change device key mappings
-
- SSSSYYYYNNNNTTTTAAAAXXXX
- XXXXCCCChhhhaaaannnnggggeeeeDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((_d_i_s_p_l_a_y,,,, _d_e_v_i_c_e,,,, _f_i_r_s_t__k_e_y_c_o_d_e,,,,
- _k_e_y_s_y_m_s__p_e_r__k_e_y_c_o_d_e,,,, _k_e_y_s_y_m_s,,,, _k_e_y_c_o_d_e__c_o_u_n_t))))
- DDDDiiiissssppppllllaaaayyyy ****_d_i_s_p_l_a_y;;;;
- XXXXDDDDeeeevvvviiiicccceeee ****_d_e_v_i_c_e;;;;
- iiiinnnntttt _f_i_r_s_t__k_e_y_c_o_d_e;;;;
- iiiinnnntttt _k_e_y_s_y_m_s__p_e_r__k_e_y_c_o_d_e;;;;
- KKKKeeeeyyyySSSSyyyymmmm ****_k_e_y_s_y_m_s;;;;
- iiiinnnntttt _k_e_y_c_o_d_e__c_o_u_n_t;;;;
-
- KKKKeeeeyyyySSSSyyyymmmm ****XXXXGGGGeeeettttDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((_d_i_s_p_l_a_y,,,, _d_e_v_i_c_e,,,, _f_i_r_s_t__k_e_y_c_o_d_e,,,, _k_e_y_c_o_d_e__c_o_u_n_t,,,,
- _k_e_y_s_y_m_s__p_e_r__k_e_y_c_o_d_e__r_e_t_u_r_n))))
- DDDDiiiissssppppllllaaaayyyy ****_d_i_s_p_l_a_y;;;;
- XXXXDDDDeeeevvvviiiicccceeee ****_d_e_v_i_c_e;;;;
- KKKKeeeeyyyyCCCCooooddddeeee _f_i_r_s_t__k_e_y_c_o_d_e;;;;
- iiiinnnntttt _k_e_y_c_o_d_e__c_o_u_n_t;;;;
- iiiinnnntttt ****_k_e_y_s_y_m_s__p_e_r__k_e_y_c_o_d_e__r_e_t_u_r_n;;;;
-
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- _d_i_s_p_l_a_y Specifies the connection to the X server.
-
- _d_e_v_i_c_e Specifies the device whose key mapping is to be
- queried or modified.
-
- _f_i_r_s_t__k_e_y_c_o_d_e
- Specifies the first KeyCode to be returned.
-
- _k_e_y_c_o_d_e__c_o_u_n_t
- Specifies the number of KeyCodes to be returned
- or modified.
-
- _k_e_y_s_y_m_s__p_e_r__k_e_y_c_o_d_e
- Specifies the number of KeySyms per KeyCode.
-
- _k_e_y_s_y_m_s__p_e_r__k_e_y_c_o_d_e__r_e_t_u_r_n
- Specifies the address of a variable into which
- the number of KeySyms per KeyCode will be
- returned.
-
- _k_e_y_s_y_m_s Specifies the address of an array of KeySyms.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- For the specified device, the _X_G_e_t_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g request
- returns the symbols for the specified number of KeyCodes
- starting with first_keycode. The value specified in
- first_keycode must be greater than or equal to min_keycode
- as returned by _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s, or a _B_a_d_V_a_l_u_e error
-
-
-
- Page 1 (printed 4/30/98)
-
-
-
-
-
-
- XXXXGGGGeeeettttDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXGGGGeeeettttDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((3333XXXX11111111))))
-
-
-
- results. In addition, the following expression must be less
- than or equal to max_keycode as returned by
- _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s:
-
- first_keycode + keycode_count - 1
-
- If this is not the case, a _B_a_d_V_a_l_u_e error results. The
- number of elements in the KeySyms list is:
-
- keycode_count * keysyms_per_keycode_return
-
- KeySym number N, counting from zero, for KeyCode K has the
- following index in the list, counting from zero: (K -
- first_code) * keysyms_per_code_return + N
-
- The X server arbitrarily chooses the
- keysyms_per_keycode_return value to be large enough to
- report all requested symbols. A special KeySym value of
- _N_o_S_y_m_b_o_l is used to fill in unused elements for individual
- KeyCodes. To free the storage returned by
- _X_G_e_t_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g, use _X_F_r_e_e.
-
- If the specified device does not support input class keys, a
- _B_a_d_M_a_t_c_h error will result.
-
- _X_G_e_t_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g can generate a _B_a_d_D_e_v_i_c_e, _B_a_d_M_a_t_c_h, or
- _B_a_d_V_a_l_u_e error.
-
- For the specified device, the _X_C_h_a_n_g_e_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g
- request defines the symbols for the specified number of
- KeyCodes starting with first_keycode. The symbols for
- KeyCodes outside this range remain unchanged. The number of
- elements in keysyms must be:
-
- num_codes * keysyms_per_keycode
-
- The specified first_keycode must be greater than or equal to
- min_keycode returned by _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s, or a _B_a_d_V_a_l_u_e
- error results. In addition, the following expression must
- be less than or equal to max_keycode as returned by
- _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s, or a _B_a_d_V_a_l_u_e error results:
-
- first_keycode + num_codes - 1
-
- KeySym number N, counting from zero, for KeyCode K has the
- following index in keysyms, counting from zero:
-
- (K - first_keycode) * keysyms_per_keycode + N
-
- The specified keysyms_per_keycode can be chosen arbitrarily
- by the client to be large enough to hold all desired
- symbols. A special KeySym value of _N_o_S_y_m_b_o_l should be used
-
-
-
- Page 2 (printed 4/30/98)
-
-
-
-
-
-
- XXXXGGGGeeeettttDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXGGGGeeeettttDDDDeeeevvvviiiicccceeeeKKKKeeeeyyyyMMMMaaaappppppppiiiinnnngggg((((3333XXXX11111111))))
-
-
-
- to fill in unused elements for individual KeyCodes. It is
- legal for _N_o_S_y_m_b_o_l to appear in nontrailing positions of the
- effective list for a KeyCode. _X_C_h_a_n_g_e_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g
- generates a _D_e_v_i_c_e_M_a_p_p_i_n_g_N_o_t_i_f_y event that is sent to all
- clients that have selected that type of event.
-
- There is no requirement that the X server interpret this
- mapping. It is merely stored for reading and writing by
- clients.
-
- If the specified device does not support input class keys, a
- _B_a_d_M_a_t_c_h error results.
-
- _X_C_h_a_n_g_e_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g can generate a _B_a_d_D_e_v_i_c_e, _B_a_d_M_a_t_c_h,
- _B_a_d_A_l_l_o_c, or _B_a_d_V_a_l_u_e error.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _B_a_d_D_e_v_i_c_e An invalid device was specified. The specified
- device does not exist or has not been opened by
- this client via _X_O_p_e_n_I_n_p_u_t_D_e_v_i_c_e. This error
- may also occur if the specified device is the X
- keyboard or X pointer device.
-
- _B_a_d_M_a_t_c_h This error may occur if an _X_G_e_t_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g
- or _X_C_h_a_n_g_e_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g request was made
- specifying a device that has no keys.
-
- _B_a_d_V_a_l_u_e Some numeric value falls outside the range of
- values accepted by the request. Unless a
- specific range is specified for an argument, the
- full range defined by the argument's type is
- accepted. Any argument defined as a set of
- alternatives can generate this error.
-
- _B_a_d_A_l_l_o_c The server failed to allocate the requested
- resource or server memory.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- XSetDeviceButtonMapping(3X11)
- XSetDeviceModifierMapping(3X11)
- _P_r_o_g_r_a_m_m_i_n_g _w_i_t_h _X_l_i_b
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 4/30/98)
-
-
-
-